<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/>
    <title>不要买--手机版</title>
    <!--<link rel="shortcut icon" href="" />-->
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet/less" href="zzz.less"/>

    <!--[if lt IE 9]>

    <script src="lib/html5shiv/html5shiv.min.js"></script>
    <script src="lib/respond/respond.js"></script>

    <![endif]-->
    <link rel="stylesheet/less" href="zwq/base.less"/>
    <script src="./lib/less/less.min.js"></script>
</head>

<body>
<div class="nav">
    <a href="#">首页 &gt; <a href="#">平板电视 &gt; <a href="#"> 海信 55EC520UA</a></a></a>
</div>
<div class="banner" id="ba">
    <!--<div class="pic">-->
        <!--<img src="images/Thumb_2015080010223719207.jpg" alt=""/>-->
        <!--<a href="#" class="sc"><img src="images/sc.jpg" width="39" height="39"/></a>-->
    <!--</div>-->
    <!--<div class="tit">海信(Hisense) LED55EC520UA 55英寸 超高清4K 智能网络LED液晶电视</div>-->
    <!--<div class="info clearfix" >-->
        <!--<ul>-->
            <!--<li class="price">-->
                <!--<span>最低价</span>-->
                <!--<em><i>:&nbsp;¥3299.00</i></em>-->
            <!--</li>-->
            <!--<li class="mall">-->
                <!--<span>最低来自</span>-->
                <!--<em>:&nbsp;苏宁易购</em>-->
            <!--</li>-->
            <!--<li class="sales">-->
                <!--<span>全网评论</span>-->
                <!--<em>:&nbsp;113832条</em>-->
            <!--</li>-->
            <!--<li class="comment">-->
                <!--<span>优选评价</span>-->
                <!--<em>:&nbsp;4563条</em>-->
            <!--</li>-->
        <!--</ul>-->
    <!--</div>-->
</div>
</body>
<script type="text/html" id="ds">
    {{each result as value i }}
    <div class="pic">
        {{#value.productImg}}
        <a href="#" class="sc"><img src="images/sc.jpg" width="39" height="39"/></a>
    </div>
    <div class="tit">{{value.productName}}</div>
    <div class="info clearfix" >
        <ul>
            <li class="price">
                <span>最低价</span>
                <em><i>:&nbsp;¥3299.00</i></em>
            </li>
            <li class="mall">
                <span>最低来自</span>
                <em>:&nbsp;苏宁易购</em>
            </li>
            <li class="sales">
                <span>全网评论</span>
                <em>:&nbsp;113832条</em>
            </li>
            <li class="comment">
                <span>优选评价</span>
                <em>:&nbsp;4563条</em>
            </li>
        </ul>
    </div>
    {{/each}}

</script>
<script>

//    function bijia(){
//        var productid = 0;
//        $.ajax({
//
//            url:"http://139.199.157.195:9090/api/getproduct?productid"+productid,
//            success : function(ev){
//                var html = template("ds",ev)
//                console.log(html);
//                $("#ba").html(html);
//                console.log("#ba");
//                bijia();
//            }
//
//        });
//
//    }
$(function(){
    getPl();
    function getPl(){
        var productid = 0;
        $.ajax({
            url:"http://139.199.157.195:9090/api/getproductcom?productid="+productid,
            success:function(e){
                var html = template("ds",e);
//                    console.log(html);
                $("#ba").html(html);
            }
        });
    }
});

</script>
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<!--引用template.js-->
<script src="./lib/template/template.js"></script>
</html>